/* ── PARTICIPA CURTAIN CARDS ── */

.participa-curtain-section {
  padding: 12px;
}

.participa-curtain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  min-height: 400px;
}

.participa-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background: linear-gradient(145deg, oklch(32% 0.025 70) 0%, oklch(28% 0.022 65) 100%);
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid oklch(100% 0 0 / 0.04);
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 300px;
}

.participa-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, oklch(100% 0 0 / 0.03), transparent 50%),
    radial-gradient(circle at 70% 80%, oklch(0% 0 0 / 0.15), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.participa-card:hover,
.participa-card:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px oklch(0% 0 0 / 0.4),
    0 0 0 1px oklch(70% 0.13 78 / 0.3);
  outline: none;
}

/* ── CARA VISIBLE ── */
.participa-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  z-index: 2;
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.participa-card:hover .participa-card__face,
.participa-card:focus-visible .participa-card__face {
  opacity: 0;
  transform: translateY(-12px);
}

.participa-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: oklch(70% 0.13 78);
}

.participa-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.participa-card__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  color: oklch(88% 0.06 80);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 8px;
}

.participa-card__sub {
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(70% 0.13 78);
  text-align: center;
}

/* ── REVEAL DES D'ABAIX ── */
.participa-card__reveal {
  position: absolute;
  inset: 0;
  background: oklch(96% 0.012 80);
  padding: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(calc(100% + 2px));
  transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 16px;
  backface-visibility: hidden;
  will-change: transform;
}

.participa-card:hover .participa-card__reveal,
.participa-card:focus-visible .participa-card__reveal {
  transform: translateY(0);
}

.participa-card__reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    oklch(0% 0 0 / 0.012) 2px 3px
  );
  pointer-events: none;
  border-radius: 16px;
}

.participa-reveal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.participa-reveal-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: oklch(70% 0.13 78);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.participa-reveal-num span {
  display: block;
  font-family: sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(40% 0.015 60);
  margin-top: 4px;
}

.participa-reveal-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(42% 0.14 24);
  background: oklch(92% 0.04 24);
  padding: 4px 8px;
  border-radius: 100px;
}

.participa-reveal-mid {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 12px 0;
}

.participa-reveal-title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 600;
  color: oklch(20% 0.015 60);
  line-height: 1.3;
  margin-bottom: 8px;
}

.participa-reveal-desc {
  font-size: clamp(12px, 0.95vw, 13px);
  color: oklch(40% 0.015 60);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.participa-reveal-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid oklch(85% 0.02 75);
}

.participa-reveal-meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: oklch(40% 0.015 60);
  text-transform: uppercase;
}

.participa-reveal-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: oklch(20% 0.015 60);
  color: oklch(88% 0.06 80);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.participa-card:hover .participa-reveal-arrow {
  background: oklch(70% 0.13 78);
  color: oklch(16% 0.018 60);
  transform: rotate(-45deg);
}

/* ── CURSOR BADGE ── */
.participa-cursor-badge {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: oklch(70% 0.13 78);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(16% 0.018 60);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 8px 28px oklch(70% 0.13 78 / 0.45);
  z-index: 10;
  top: 0;
  left: 0;
}

.participa-cursor-badge svg {
  width: 26px;
  height: 26px;
}

.participa-card:hover .participa-cursor-badge,
.participa-card:focus-visible .participa-cursor-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.participa-card:hover {
  cursor: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .participa-curtain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .participa-card__reveal {
    transform: none !important;
    transition: none !important;
  }
  .participa-card__face {
    opacity: 1 !important;
    transform: none !important;
  }
  .participa-cursor-badge {
    display: none !important;
  }
  .participa-card:hover {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .participa-curtain-grid {
    grid-template-columns: 1fr;
  }
  .participa-card {
    min-height: 220px;
  }
}
